home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASME's Mechanical Engine…ing Toolkit 1997 December
/
ASME's Mechanical Engineering Toolkit 1997 December.iso
/
c_lang
/
varinc.lzh
/
PAGE247.C
< prev
next >
Wrap
Text File
|
1979-11-30
|
882b
|
23 lines
struct term_msg /* Declare structure tag term_msg. */
{
short row, col; /* screen location */
char *msg; /* message to display */
};
/* Paint the screen with an array of field names. */
void scrn_pnt(form)
struct term_msg form[];
{
void s_tput(struct term_msg *); /* structure version of tput() */
short imsg;
for (imsg = 0; form.msg != NULL; ++imsg)
s_tput(&form[imsg]); /* Pass structure address to function listed next.*/
/* The structure version of tput() prints a message on the */
/* screen by calling the order-entry function tput(). */
void s_tput(p_form)
struct term_msg *p_form; /* p_form is a pointer to a term_msg structure. */
{
tput(p_form->row, p_form->col, p_form->msg);
}